{template modoer_header}
<script type="text/javascript" src="{URLROOT}/static/javascript/item.js"></script>
<div id="body">
    <div class="myhead"></div>
    <div class="mymiddle">
        <div class="myleft">
        <!--{eval !$mymenu && $mymenu = 'mmenu';}-->
        <!--{template $mymenu,'member','member'}-->
        </div>
        <div class="myright">
            <div class="myright_top"></div>
            <div class="myright_middle">
                <h3><cite>当前操作的主题:<span class="font_2">$_G[manage_subject][name]{if $_G[manage_subject][subname]}($_G[manage_subject][subname]){/if}</span>[<a href="javascript:void(0);" onclick="item_subject_manage();">更换</a>]</cite>自定义指令</h3>
                <div class="mainrail">
                    <form method="post" name="myform" action="{url weixin/member/ac/$ac/rand/$_G[random]}">
                    <table width="100%" cellspacing="0" cellpadding="0" class="maintable" trmouse="Y">
                        <tr>
                            <th width="20"><input type="checkbox" id="allcheck" onclick="checkbox_checked('ids[]',this);" /></th>
                            <th width="30">ID</th>
                            <th width="60">回复类型</th>
                            <th width="120">关键字</th>
                            <th width="*">指令介绍</th>
                            <th width="80">默认/关注回复</th>
                            <th width="60"><center>已触发</center></th>
                            <th width="50">操作</th>
                        </tr>
                        <!--{if $list}-->
                        <!--{dbres $list $val}-->
                        <tr>
                            <td><input type="checkbox" name="ids[]" value="$val[id]" /></td>
                            <td>{$val[id]}</td>
                            <td>$val[msgtype]</td>
                            <td>$val[keyword]</td>
                            <td>$val[intro]</td>
                            <td>
                                <center>
                                    {if $val[is_default]}●{else}○{/if}
                                    &nbsp;&nbsp;
                                    {if $val[is_subscribe]}●{else}○{/if}
                                </center>
                            </td>
                            <td><center>$val[replys]</center></td>
                            <td><a href="{url weixin/member/ac/$ac/op/edit/id/$val[id]}">编辑</a></td>
                        </tr>
                        <!--{/dbres}-->
                        <!--{else}-->
                        <tr><td colspan="7">暂无信息。</td></tr>
                        <!--{/if}-->
                    </table>
                    <!--{if $total}-->
                    <div class="multipage">$multipage</div>
                    <!--{/if}-->
                    <div class="text_center">
                        <input type="hidden" name="forward" value="{print get_forward()}" />
                        <button type="button" onclick="jslocation('{url weixin/member/ac/$ac/op/add}');">添加新指令</button>
                        <!--{if $list}-->
                        <input type="hidden" name="dosubmit" value="yes" />
                        <input type="hidden" name="op" value="" />
                        <button type="button" onclick="easy_submit('myform','delete','ids[]');">删除所选</button>
                        <!--{/if}-->
                    </div>
                    </form>
                </div>
            </div>
        </div>
        <div class="clear"></div>
    </div>
    <div class="mybottom"></div>
</div>
<!--{eval footer();}-->